package com.nq.dao.stock;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nq.common.entity.vo.StStockOnlyMarketAndCode;
import com.nq.fund.vo.StFundKlineVo;
import com.nq.stock.entity.StStockKLine;
import com.nq.stock.entity.StStockTicker;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: st_stock_ticker
 * @Author: jeecg-boot
 * @Date:   2024-05-30
 * @Version: V1.0
 */
public interface StStockTickerMapper extends BaseMapper<StStockTicker> {

    List<StStockTicker> queryOptionList(@Param("userId") Integer userId, @Param("changePercent") String changePercent);

    List<StFundKlineVo> fundList();

    StStockTicker queryByCode(@Param("market") String market, @Param("code") String code);

    List<StStockOnlyMarketAndCode> selectOnlyMarketAndCode();

    int deleteByMarketAndCode(@Param("market") String market, @Param("code") String code);
}
